all:
	gcc gausslegendre-seq.c test-gausslegendre-seq.c -o test-gausslegendre-seq -lm
	gcc gausslegendre-par.c test-gausslegendre-par.c -o test-gausslegendre-par -lm -lpthread
	gcc borwein.c test-borwein-seq.c -o test-borwein-seq -lm -lpthread -lgmp
	gcc borwein.c test-borwein-par.c -o test-borwein-par -lm -lpthread -lgmp
	gcc montecarlo-seq.c test-montecarlo-seq.c -o test-montecarlo-seq
	gcc montecarlo-par.c test-montecarlo-par.c -o test-montecarlo-par -lpthread
	gcc blackscholes-seq.c test-blackscholes-seq.c -o test-blackscholes-seq -lm
	gcc blackscholes-par.c test-blackscholes-par.c -o test-blackscholes-par -lm -lpthread


gausslegendre-seq:
	/usr/bin/time -f "%e" ./test-gausslegendre-seq
gausslegendre-par:
	/usr/bin/time -f "%e" ./test-gausslegendre-par

borwein-seq:
	/usr/bin/time -f "%e" ./test-borwein-seq
borwein-par:
	/usr/bin/time -f "%e" ./test-borwein-par

montecarlo-seq:
	/usr/bin/time -f "%e" ./test-montecarlo-seq
montecarlo-par:
	/usr/bin/time -f "%e" ./test-montecarlo-par

blackscholes-seq:
	/usr/bin/time -f "%e" ./test-blackscholes-seq
blackscholes-par:
	/usr/bin/time -f "%e" ./test-blackscholes-par

